package com.mxf.code.redisson_demo;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : Test
 * @description : [描述说明该类的功能]
 * @createTime : [2022/10/9 20:16]
 * @updateUser : [mxf]
 * @updateTime : [2022/10/9 20:16]
 * @updateRemark : [描述说明本次修改内容]
 */
public class Test {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress addr = InetAddress.getLocalHost();
        System.out.println(addr.getHostName());
        System.out.println(addr.getHostAddress());
    }
}
